#include <STC15F2K60S2.H>

void Timer2Init(void)		//500微秒@11.0592MHz
{
	AUXR |= 0x04;		//定时器时钟1T模式
	T2L = 0x66;		//设置定时初值
	T2H = 0xEA;		//设置定时初值
	AUXR |= 0x10;		//定时器2开始计时
	EA = 1;
	IE2 |= 0X04;
	AUXR |= 0X10;//开始计时
}


//中断模板
//void timer2() interrupt 12 using 1
//{
//	static unsigned char count = 0;
//	T2L = 0x66;		//设置定时初值
//	T2H = 0xEA;		//设置定时初值
//}

